package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.String;
import com.softlook.mt.server.db.dto.Client;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class User {
	private Integer userid;
	private Integer clientid;
	private String login;
	private String password;
	private String name;
	private Client clientidClientRefObj = null;
	private List useridUserdeviceRefList = new LinkedList();
	private List useridPlaceRefList = new LinkedList();
	public Integer getUserid() {
		return this.userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Integer getClientid() {
		return this.clientid;
	}
	public void setClientid(Integer clientid) {
		this.clientid = clientid;
	}
	public String getLogin() {
		return this.login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return this.password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("userid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("clientid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("login".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("password".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("name".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof User)){
			return false;
		}
		
		User table = (User)object;
		if(this.userid == null &&  table.userid != null){
		   return false;
		}
		if(this.userid != null &&  table.userid == null){
		   return false;
		}
		if(this.userid != null && !this.userid.equals(table.userid)){
		   return false;
		}
		if(this.clientid == null &&  table.clientid != null){
		   return false;
		}
		if(this.clientid != null &&  table.clientid == null){
		   return false;
		}
		if(this.clientid != null && !this.clientid.equals(table.clientid)){
		   return false;
		}
		if(this.login == null &&  table.login != null){
		   return false;
		}
		if(this.login != null &&  table.login == null){
		   return false;
		}
		if(this.login != null && !this.login.equals(table.login)){
		   return false;
		}
		if(this.password == null &&  table.password != null){
		   return false;
		}
		if(this.password != null &&  table.password == null){
		   return false;
		}
		if(this.password != null && !this.password.equals(table.password)){
		   return false;
		}
		if(this.name == null &&  table.name != null){
		   return false;
		}
		if(this.name != null &&  table.name == null){
		   return false;
		}
		if(this.name != null && !this.name.equals(table.name)){
		   return false;
		}
		return true;
	}
	public Client getClientidClientRefObj() {
		return this.clientidClientRefObj;
	}
	public void setClientidClientRefObj(Client clientidClientRefObj) {
		this.clientidClientRefObj = clientidClientRefObj;
	}
	public List getUseridUserdeviceRefList() {
		return this.useridUserdeviceRefList;
	}
	public void setUseridUserdeviceRefList(List useridUserdeviceRefList) {
		this.useridUserdeviceRefList = useridUserdeviceRefList;
	}
	public List getUseridPlaceRefList() {
		return this.useridPlaceRefList;
	}
	public void setUseridPlaceRefList(List useridPlaceRefList) {
		this.useridPlaceRefList = useridPlaceRefList;
	}
}
